package com.jianxiu.bean;

import org.apache.ibatis.type.Alias;

@Alias("sysConfig")
public class SysConfig {
    private Long id;
    private String title;
    private String type;
    private String value;
    private int state = 1;
    private int write = 1;
    private String remark;
    private int sno = 1;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getWrite() {
        return write;
    }

    public void setWrite(int write) {
        this.write = write;
    }

    public int getSno() {
        return sno;
    }

    public void setSno(int sno) {
        this.sno = sno;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getStateDict() {
        if (this.state == 1) {
            return "启用";
        }
        return "不启用";
    }
}
